# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-tissot
pkgdesc="Xiaomi A1"
pkgver=0.1
pkgrel=5
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-tissot mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Firmware for xiaomi-tissot"
	depends="linux-firmware-qcom firmware-xiaomi-tissot"
	mkdir "$subpkgdir"
}

sha512sums="54e8f9c481968348bc81621b342027bb5d1db117e021103fc05e782244bc7722a3f64abf95384970db97d42c2bef5c87295ebf2a5a378fc08b3cabb26b56d7f1  deviceinfo"
